package com.gujianjian.com.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AopConfig {

    @Bean
    public LoggingAdvice loggingAdvice() {
        return new LoggingAdvice();
    }

    @Bean
    public CustomAdvisor customAdvisor(LoggingAdvice loggingAdvice) {
        return new CustomAdvisor(loggingAdvice);
    }
}